package com.test.base.dao;
import com.test.base.entity.NideshopSearchHistory;
import java.util.List;
import com.test.base.utils.Assist;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
@Mapper
public interface NideshopSearchHistoryDao{
	/**
	 * 获得NideshopSearchHistory数据的总行数,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * @param assist
	 * @return
	 */
    long getNideshopSearchHistoryRowCount(Assist assist);
	/**
	 * 获得NideshopSearchHistory数据集合,可以通过辅助工具Assist进行条件查询,如果没有条件则传入null
	 * @param assist
	 * @return
	 */
    List<NideshopSearchHistory> selectNideshopSearchHistory(Assist assist);
	/**
	 * 获得一个NideshopSearchHistory对象,以参数NideshopSearchHistory对象中不为空的属性作为条件进行查询
	 * @param obj
	 * @return
	 */
    NideshopSearchHistory selectNideshopSearchHistoryByObj(NideshopSearchHistory obj);
	/**
	 * 通过NideshopSearchHistory的id获得NideshopSearchHistory对象
	 * @param id
	 * @return
	 */
    NideshopSearchHistory selectNideshopSearchHistoryById(Object id);
	/**
	 * 插入NideshopSearchHistory到数据库,包括null值
	 * @param value
	 * @return
	 */
    int insertNideshopSearchHistory(NideshopSearchHistory value);
	/**
	 * 插入NideshopSearchHistory中属性值不为null的数据到数据库
	 * @param value
	 * @return
	 */
    int insertNonEmptyNideshopSearchHistory(NideshopSearchHistory value);
	/**
	 * 通过NideshopSearchHistory的id删除NideshopSearchHistory
	 * @param id
	 * @return
	 */
    int deleteNideshopSearchHistoryById(Object id);
	/**
	 * 通过辅助工具Assist的条件删除NideshopSearchHistory
	 * @param assist
	 * @return
	 */
    int deleteNideshopSearchHistory(Assist assist);
	/**
	 * 通过NideshopSearchHistory的id更新NideshopSearchHistory中的数据,包括null值
	 * @param enti
	 * @return
	 */
    int updateNideshopSearchHistoryById(NideshopSearchHistory enti);
 	/**
	 * 通过辅助工具Assist的条件更新NideshopSearchHistory中的数据,包括null值
	 * @param value
	 * @param assist
	 * @return
	 */
    int updateNideshopSearchHistory(@Param("enti") NideshopSearchHistory value, @Param("assist") Assist assist);
	/**
	 * 通过NideshopSearchHistory的id更新NideshopSearchHistory中属性不为null的数据
	 * @param enti
	 * @return
	 */
    int updateNonEmptyNideshopSearchHistoryById(NideshopSearchHistory enti);
 	/**
	 * 通过辅助工具Assist的条件更新NideshopSearchHistory中属性不为null的数据
	 * @param value
	 * @param assist
	 * @return
	 */
    int updateNonEmptyNideshopSearchHistory(@Param("enti") NideshopSearchHistory value, @Param("assist") Assist assist);
}